package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.PointRule;
import com.ruoyi.system.mapper.PointRuleMapper;
import com.ruoyi.system.service.IPointRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 地域Service业务层处理
 *
 * @author ruoyi
 * @date 2023-07-18
 */
@Service
public class PointRuleServiceImpl extends ServiceImpl<PointRuleMapper, PointRule> implements IPointRuleService {
    @Autowired
    private PointRuleMapper pointRuleMapper;

    /**
     * 查询地域
     *
     * @param id 地域主键
     * @return 地域
     */
    @Override
    public PointRule selectPointRuleById(Long id) {
        return pointRuleMapper.selectPointRuleById(id);
    }

    /**
     * 查询地域列表
     *
     * @param PointRule 地域
     * @return 地域
     */
    @Override
    public List<PointRule> selectPointRuleList(PointRule PointRule) {
        return pointRuleMapper.selectPointRuleList(PointRule);
    }

    /**
     * 新增地域
     *
     * @param PointRule 地域
     * @return 结果
     */
    @Override
    public int insertPointRule(PointRule PointRule) {
        return pointRuleMapper.insertPointRule(PointRule);
    }

    /**
     * 修改地域
     *
     * @param PointRule 地域
     * @return 结果
     */
    @Override
    public int updatePointRule(PointRule PointRule) {
        return pointRuleMapper.updatePointRule(PointRule);
    }

    /**
     * 批量删除地域
     *
     * @param ids 需要删除的地域主键
     * @return 结果
     */
    @Override
    public int deletePointRuleByIds(Long[] ids) {
        return pointRuleMapper.deletePointRuleByIds(ids);
    }

    /**
     * 删除地域信息
     *
     * @param id 地域主键
     * @return 结果
     */
    @Override
    public int deletePointRuleById(Long id) {
        return pointRuleMapper.deletePointRuleById(id);
    }
}
